Skip to content

Conversation

alionazherdetska
Copy link
Contributor

@alionazherdetska alionazherdetska commented Sep 30, 2025

πŸ“„ Description

Ticket: #5940

Breaking Changes

  • Renamed post-tab-header component to post-tab-item
  • Renamed property panel β†’ name in post-tab-item
  • Renamed property name β†’ for in post-tab-panel
  • Renamed property activePanel β†’ activeTab in post-tabs
  • Changed slot structure: tab items now use default slot, panels use panels slot

New Features

  • Added navigation variant for anchor-based navigation
  • Automatic variant detection based on presence of anchor links
  • Navigation mode renders semantic <nav> element with proper ARIA attributes

Testing

  • Added Cypress tests for Components package
  • Added Cypress tests for Angular integration (including accessibility testing with Axe)
  • Added Playwright tests for Next.js integration (including accessibility testing with Axe)

Documentation

  • Updated Storybook stories with variant controls
  • Added examples for both panels and navigation variants

Animation:

  • Cleaned up animations to prevent memory leaks by canceling running animations on component destruction.

Note:
The controls table still shows both CSS Shadow Parts for both variants because Storybook automatically extracts these from the component's JSDoc part annotations at build time, preventing any dynamic filtering based on the selected variant control.

Unlike slots, which are manually defined in the stories configuration and support conditional visibility using the if property, CSS Shadow Parts are auto-generated from the component source code.

πŸš€ Preview Link

Tabs component


πŸ“ Checklist

  • βœ… My code follows the style guidelines of this project
  • πŸ› οΈ I have performed a self-review of my own code
  • πŸ“„ I have made corresponding changes to the documentation
  • ⚠️ My changes generate no new warnings or errors
  • πŸ§ͺ I have added tests that prove my fix is effective or that my feature works
  • βœ”οΈ New and existing unit tests pass locally with my changes

Copy link

changeset-bot bot commented Sep 30, 2025

πŸ¦‹ Changeset detected

Latest commit: 4fd4a3d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@swisspost/design-system-components Major
@swisspost/design-system-components-react Major
@swisspost/design-system-components-angular Major
@swisspost/design-system-documentation Minor
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-styles Major
@swisspost/design-system-tokens Major
@swisspost/design-system-icons Major
@swisspost/design-system-styles-primeng Major
@swisspost/internet-header Major
@swisspost/design-system-styles-primeng-workspace Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Sep 30, 2025

Related Previews

@alionazherdetska alionazherdetska marked this pull request as draft September 30, 2025 11:15
@alionazherdetska alionazherdetska marked this pull request as ready for review October 8, 2025 08:38
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants